package com.example.servicegateway.route.rule.domain;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

import java.net.URI;
import java.util.ArrayList;
import java.util.List;

/**
 * 规则对象
 * @author K
 */
@Data
public class RouteDomain {

    @JSONField(ordinal = 1)
    private String id;

    @JSONField(ordinal = 2)
    private URI uri;

    @JSONField(ordinal = 3)
    private List<String> predicates = new ArrayList<>();

    @JSONField(ordinal = 4)
    private List<String> filters = new ArrayList<>();
}
